package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.sql.Timestamp;

@TableName("revisit")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RevisitPojo {
    @TableId(value = "revisit_id",type = IdType.AUTO)
    private Integer revisitId;

    @TableField(value = "patient_id")
    private String patientId;

    @TableField(value = "revisit_content")
    private String revisitContent;

    @TableField(value = "revisit_date")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp revisitDate;

    @TableField(value = "revisit_status")
    private Integer revisitStatus;

    @TableField(value = "revisit_result")
    private String revisitResult;

    @TableField(value = "revisit_type")
    private String revisitType;

    @TableField(value = "revisit_delete")
    private Integer revisitDelete;

}
